#include "ai_stub_alg.h"



void stub_algorithm::get_buy_commands( const game_state* gs )
{
	//clears current commands queue (not necessary)
	commands.clear();
	cout << "AI BEGIN" << endl;
	time_t start_time = time( 0 );
	
	//HERE SHOULD BE ADDED FUNCTIONS TO FILL COMMANDS LIST WITH BUY COMMANDS

	//end of turn
	commands.push_back( "END" );
	
	unsigned int elapsed_sec = ( unsigned int)( abs( ceil ( difftime( time( 0 ), start_time ) ) ) );

	cout << "Elapsed time: " << ai_algorithms::sec_to_string( elapsed_sec ) << " (will not be added to graph)" << endl;
	cout << "AI END" << endl;
};



void stub_algorithm::get_commands( const game_state* gs )
{
	//clears current commands queue (not necessary)
	commands.clear();
	cout << "AI BEGIN" << endl;
	time_t start_time = time( 0 );

	//HERE SHOULD BE ADDED FUNCTIONS TO FILL COMMANDS LIST WITH PLAY COMMANDS
	
	//end of turn
	commands.push_back( "NXT" );

	unsigned int elapsed_sec = ( unsigned int)( abs( ceil ( difftime( time( 0 ), start_time ) ) ) );
	time_cons.push_back( elapsed_sec );
	cout << "Elapsed time: " << ai_algorithms::sec_to_string( elapsed_sec ) << endl;
	cout << "AI END" << endl;
};